ZhaoQiang [Thu, 17 Jan 2019 12:05:39 +0000 (20:05 +0800)]
Remove some unused variables
To avoid compiler warnings.
See merge request GNOME/gtk!513
Daniel Mustieles [Tue, 9 Apr 2019 08:11:59 +0000 (08:11 +0000)]
Update Spanish translation
Matthias Clasen [Mon, 8 Apr 2019 15:09:40 +0000 (15:09 +0000)]
Merge branch 'wip/cellrendererpixbuf-fallbacks' into 'master'
cellrendererpixbuf: Use fallback icons with icon-name
Closes #1809
See merge request GNOME/gtk!728
Iain Lane [Mon, 8 Apr 2019 13:52:49 +0000 (14:52 +0100)]
cellrendererpixbuf: Use fallback icons with icon-name
This gives us a better chance of finding an icon to show.
Closes: #1809
Matthias Clasen [Mon, 8 Apr 2019 12:59:06 +0000 (12:59 +0000)]
Merge branch 'pick-insensitive2' into 'master'
Make picking insensitive widgets work again
Closes #1816 and #51
See merge request GNOME/gtk!727
Matthias Clasen [Sun, 7 Apr 2019 21:36:40 +0000 (21:36 +0000)]
Rename things
Rename the can-pick property to can-target,
and redo the pick flags with more descriptive names.
Ask Hjorth Larsen [Sun, 7 Apr 2019 22:04:13 +0000 (00:04 +0200)]
Updated Danish translation of gtk
Matthias Clasen [Sun, 7 Apr 2019 20:34:12 +0000 (20:34 +0000)]
Keep a drawable check in gtk_widget_contains
If the widget is not drawable, it probably doesn't have
an allocation, so asking the question does not make much
sense.
Matthias Clasen [Sun, 7 Apr 2019 17:27:58 +0000 (17:27 +0000)]
Document GtkPickFlags
Matthias Clasen [Sun, 7 Apr 2019 17:23:17 +0000 (17:23 +0000)]
inspector: Allow picking insensitive widgets again
Use the new argument to gtk_widget_pick to allow picking
insensitive widgets.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/51
Matthias Clasen [Sun, 7 Apr 2019 17:23:06 +0000 (17:23 +0000)]
tooltip: Allow tooltips on insensitive widgets again
Use the new argument to gtk_widget_pick to allow picking
insensitive widgets.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1816
Matthias Clasen [Sun, 7 Apr 2019 17:19:09 +0000 (17:19 +0000)]
Add a flags argument to gtk_widget_pick
This will be used to let the inspector and other users
pick insensitive widgets again. For now, update all
callers to pass no flags, preserving the current
behavior.
Matthias Clasen [Sun, 7 Apr 2019 17:00:51 +0000 (17:00 +0000)]
widget: Drop the pick vfunc
The way to influence picking is to implement contains,
we no longer use the pick vfunc.
Matthias Clasen [Sun, 7 Apr 2019 16:11:20 +0000 (16:11 +0000)]
window: Stop implementing pick
Treat popovers as a special-case for now.
Matthias Clasen [Sun, 7 Apr 2019 16:03:27 +0000 (16:03 +0000)]
paned: Drop the pick vfunc
Implement contains on the handle, instead of pick on the paned.
Matthias Clasen [Sun, 7 Apr 2019 15:47:24 +0000 (15:47 +0000)]
gizmo: Add a contains_func
Let GtkGizmo override the contains() implementation.
Update all callers to pass NULL for the contains_func.
Matthias Clasen [Sun, 7 Apr 2019 15:13:52 +0000 (15:13 +0000)]
widget: Make contains just be about position
Leave out reactiveness considerations here,
pick will handle those.
Matthias Clasen [Sun, 7 Apr 2019 15:11:22 +0000 (15:11 +0000)]
widget: Make contains respect rounded borders
We have the api for this now.
Matthias Clasen [Sun, 7 Apr 2019 15:16:23 +0000 (15:16 +0000)]
Merge branch 'treeview-expander-fix' into 'master'
treeview: Make expanders work again
Closes #1814
See merge request GNOME/gtk!725
Matthias Clasen [Sun, 7 Apr 2019 12:16:20 +0000 (12:16 +0000)]
treeview: Make expanders work again
These were broken by the crossing event unification.
We are now generating some more crossing events, and
the treeview was not looking closely enough at the
ones it gets.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1814
Matthias Clasen [Sat, 6 Apr 2019 23:32:37 +0000 (23:32 +0000)]
NEWS: More details about transforms
Matthias Clasen [Sat, 6 Apr 2019 23:14:01 +0000 (23:14 +0000)]
Merge branch 'inspector-work' into 'master'
Inspector work
See merge request GNOME/gtk!724
Matthias Clasen [Sat, 6 Apr 2019 23:08:10 +0000 (23:08 +0000)]
inspector: Disable autoloaded custom css initially
This is a safeguard against possible crashing css
being autoloaded.
Matthias Clasen [Sat, 6 Apr 2019 23:03:25 +0000 (23:03 +0000)]
widget: Propagate display changes to the style context
When a root is set on a widget, the style context may
already exist. We need to make sure that the style context
has the right display set.
This was showing up as "css spillover" in the inspector.
Closes: #https://gitlab.gnome.org/GNOME/gtk/issues/1817
Matthias Clasen [Sat, 6 Apr 2019 22:09:23 +0000 (22:09 +0000)]
Merge branch 'inspector-fixes' into 'master'
Inspector fixes
See merge request GNOME/gtk!723
Matthias Clasen [Sat, 6 Apr 2019 18:19:40 +0000 (18:19 +0000)]
inspector: Warn if using the default display
Matthias Clasen [Sat, 6 Apr 2019 18:00:09 +0000 (18:00 +0000)]
inspector: Autosave css
Save and restore the contents of the css editor in a file.
Matthias Clasen [Sat, 6 Apr 2019 17:39:00 +0000 (17:39 +0000)]
inspector: Rearrange settings a bit
Keep only the software gl setting for GL, and put it together
with the simulate touchscreen setting in a 'misc' box. This
keeps all the 'show' options nicely grouped.
Matthias Clasen [Sat, 6 Apr 2019 15:46:14 +0000 (15:46 +0000)]
inspector: Clean up on finalize
Just a matter of cleanliness.
Matthias Clasen [Sat, 6 Apr 2019 15:36:10 +0000 (15:36 +0000)]
inspector: Fix a copy-paste error
We were stuffing the layout overlay into the updates_overlay
field, leaving the layout_overlay field unused.
Matthias Clasen [Sat, 6 Apr 2019 16:36:51 +0000 (16:36 +0000)]
gdk: Fix an indentation mishap
Commit
f1d61d55151eab774e6734c9ff51212a9c6cee73 inadvertedly
destroyed indentation in most of gdksurface.c. Fix this.
Piotr Drąg [Sat, 6 Apr 2019 14:45:45 +0000 (16:45 +0200)]
Update Polish translation
Matthias Clasen [Sat, 6 Apr 2019 12:59:56 +0000 (12:59 +0000)]
HighContrast: fix focus
We don't want to render focus rectangles on everything. With
the way focus is propagated nowadays, the theme has to selectively
render focus on certain widgets.
At the same time, we always want to render focus for this
theme, so use the focus pseudoclass, not focus(visible).
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1815
Matthias Clasen [Sat, 6 Apr 2019 12:09:37 +0000 (12:09 +0000)]
combo box: Remove leftovers in the header
These functions no longer exist and should not be in
the headers anymore.
Matthias Clasen [Sat, 6 Apr 2019 01:50:56 +0000 (21:50 -0400)]
Updates for 3.96
Matthias Clasen [Sat, 6 Apr 2019 00:49:40 +0000 (00:49 +0000)]
widget: Remove some leftover child-property code
Matthias Clasen [Sat, 6 Apr 2019 00:48:24 +0000 (00:48 +0000)]
builder-tool: Handle layout properties gracefully
If there are already layout properties in the ui
file, we shouldn't crash, even if --3to4 is given.
Matthias Clasen [Sat, 6 Apr 2019 00:47:46 +0000 (00:47 +0000)]
Remove a few stray <packing/> elements
These were leftovers from an earlier conversion
that did not properly strip empty elements.
Matthias Clasen [Sat, 6 Apr 2019 00:40:54 +0000 (00:40 +0000)]
Merge branch 'menushell-bandaid' into 'master'
Make menu activation work again
Closes #1796
See merge request GNOME/gtk!721
Matthias Clasen [Sat, 6 Apr 2019 00:20:21 +0000 (00:20 +0000)]
Make menu activation work again
After we stopped untranslatable delivering events, menus stopped
working 'the second time'. After some painful debugging, it appears
that this is caused by the menushell code deliberately grabbing
on the menubar *after* grabbing on the menu, causing events to
be deleivered to the wrong toplevel. This did not use to matter,
but now we drop these events.
Absent a more thorough rewrite of menus, just don't grab on
the menubar. This makes menu activation work again and does not
appear to have ill effects, on either Wayland or X.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1796
Emmanuele Bassi [Fri, 5 Apr 2019 20:01:06 +0000 (20:01 +0000)]
Merge branch 'wip/ebassi/ci-junit-report' into 'master'
ci: Add JUnit report for the test suite
See merge request GNOME/gtk!718
Matthias Clasen [Fri, 5 Apr 2019 19:58:56 +0000 (19:58 +0000)]
Merge branch 'gtk-4-file-containers-in-sidebar' into 'master'
gtkplacessidebar: Add loop devices
See merge request GNOME/gtk!289
segfault3 [Fri, 5 Apr 2019 19:58:56 +0000 (19:58 +0000)]
gtkplacessidebar: Add loop devices
Matthias Clasen [Fri, 5 Apr 2019 19:57:32 +0000 (19:57 +0000)]
Merge branch 'inspector-layout' into 'master'
Show layout children in the inspector
See merge request GNOME/gtk!720
Matthias Clasen [Fri, 5 Apr 2019 19:44:16 +0000 (19:44 +0000)]
inspector: Avoid a critical
If a layout manager does not have layout children,
quietly hide the layout page.
Emmanuele Bassi [Fri, 5 Apr 2019 18:15:11 +0000 (19:15 +0100)]
ci: Add manual jobs for Flatpak bundles
Bundles can be useful on branches and MRs as an opt-in.
Emmanuele Bassi [Fri, 5 Apr 2019 18:29:58 +0000 (19:29 +0100)]
ci: Call the report script on failure as well
GitLab's CI will bail out at the first failure, which means the
JSON-to-JUnit conversion script won't run unless it's part of the same
script that we run for building an testing.
Emmanuele Bassi [Fri, 5 Apr 2019 17:23:13 +0000 (18:23 +0100)]
ci: Add JUnit report for the test suite
We can convert the JSON output for `meson test` into a JUnix XML report,
which can be consumed by GitLab.
Matthias Clasen [Fri, 5 Apr 2019 19:15:16 +0000 (19:15 +0000)]
Show layout children in the inspector
Matthias Clasen [Fri, 5 Apr 2019 19:01:21 +0000 (19:01 +0000)]
Merge branch 'child-props-followup' into 'master'
Child props followup
See merge request GNOME/gtk!719
Matthias Clasen [Fri, 5 Apr 2019 18:39:17 +0000 (18:39 +0000)]
buildable: Remove a mention of <packing>
This is no longer a supported element in ui files.
Matthias Clasen [Fri, 5 Apr 2019 18:38:00 +0000 (18:38 +0000)]
print dialog: Rewrite example
The ui file example was still using GTK3 syntax
for GtkNotebooks.
Matthias Clasen [Fri, 5 Apr 2019 18:34:22 +0000 (18:34 +0000)]
Fix the inspector
One of the inspector ui files was still using
child properties.
Piotr Drąg [Fri, 5 Apr 2019 17:56:06 +0000 (19:56 +0200)]
Update POTFILES.in
Matthias Clasen [Fri, 5 Apr 2019 12:27:24 +0000 (12:27 +0000)]
Merge branch 'child-properties-be-gone' into 'master'
Child properties be gone
See merge request GNOME/gtk!715
Matthias Clasen [Fri, 5 Apr 2019 05:25:11 +0000 (05:25 +0000)]
testsuite: Remove packing property tests
These test files were for checking that
GtkBuilder parses <packing> properly.
We no longer support <packing>, so these
can go.
Matthias Clasen [Fri, 5 Apr 2019 04:43:36 +0000 (04:43 +0000)]
container: Reduce boilerplate
We no longer need to hand-roll the type registration,
since we no longer install our own param spec pool.
Matthias Clasen [Fri, 5 Apr 2019 04:02:53 +0000 (04:02 +0000)]
Drop child property related apis
We no longer have any child properties in
our containers, so drop the infrastructure for it.
Matthias Clasen [Fri, 5 Apr 2019 04:02:19 +0000 (04:02 +0000)]
builder-tool: Stop using child properties
Matthias Clasen [Fri, 5 Apr 2019 04:02:06 +0000 (04:02 +0000)]
testgtk: Stop using child properties
Matthias Clasen [Fri, 5 Apr 2019 04:01:51 +0000 (04:01 +0000)]
paned: Stop using child properties
Matthias Clasen [Fri, 5 Apr 2019 04:01:30 +0000 (04:01 +0000)]
notebook: Stop using child properties
Matthias Clasen [Fri, 5 Apr 2019 03:59:06 +0000 (03:59 +0000)]
gtk-demo: Stop using child properties
Matthias Clasen [Fri, 5 Apr 2019 03:56:32 +0000 (03:56 +0000)]
Remove testactionbar
This test relies on child properties.
Matthias Clasen [Fri, 5 Apr 2019 03:37:06 +0000 (03:37 +0000)]
Remove testtitlebar
This test relies on child properties.
Matthias Clasen [Fri, 5 Apr 2019 03:34:07 +0000 (03:34 +0000)]
print dialog: Stop using gtk_container_child_get
The grid does not have child properties anymore.
Matthias Clasen [Fri, 5 Apr 2019 11:59:24 +0000 (11:59 +0000)]
grid: Annotate out args as optional
They are optional, so annotate them as such.
Matthias Clasen [Fri, 5 Apr 2019 04:14:53 +0000 (04:14 +0000)]
searchbar: Fix a compiler warning
Matthias Clasen [Fri, 5 Apr 2019 03:34:42 +0000 (03:34 +0000)]
file chooser: Fix some compiler warnings
Matthias Clasen [Fri, 5 Apr 2019 05:07:32 +0000 (05:07 +0000)]
A round of + removal
change GTK+ to GTK throughout gtkmain.c.
Matthias Clasen [Fri, 5 Apr 2019 03:05:08 +0000 (03:05 +0000)]
builder-tool: Don't empty out <mark> elements
We were inadvertedly losing the content of <mark>
elements. Fix this, by marking (!) them as pcdata
elements.
Matthias Clasen [Fri, 5 Apr 2019 02:42:55 +0000 (02:42 +0000)]
Merge branch 'wip/ebassi/grid-layout' into 'master'
Implement GtkGridLayout
See merge request GNOME/gtk!714
Emmanuele Bassi [Fri, 5 Apr 2019 00:39:34 +0000 (01:39 +0100)]
testsuite/css: Change the active RadioButton
The `buttons` test for CSS nodes sets the second RadioButton as the
active one, whereas the first RadioButton is not set as active.
Nevertheless, the reference output says that the first radio button
should match the `:checked` selector, whereas the second radio button
should not.
The fact that the test currently passes is a mystery.
Emmanuele Bassi [Thu, 4 Apr 2019 23:49:33 +0000 (00:49 +0100)]
testsuite/css: Update UI files
Run the UI files through `gtk-builder-tool simplify --3to4` to update
the layout properties.
Emmanuele Bassi [Thu, 4 Apr 2019 23:33:12 +0000 (00:33 +0100)]
testsuite/reftests: Update UI files
Run the UI files through `gtk-builder-tool simplify --3to4` to update
the layout properties.
Emmanuele Bassi [Thu, 4 Apr 2019 23:24:49 +0000 (00:24 +0100)]
testsuite/a11y: Update GtkGrid definitions in UI files
Emmanuele Bassi [Thu, 4 Apr 2019 23:20:45 +0000 (00:20 +0100)]
tests: Update GtkGrid definitions in UI files
Emmanuele Bassi [Thu, 4 Apr 2019 23:12:59 +0000 (00:12 +0100)]
examples: Update GtkGrid definitions in UI files
Emmanuele Bassi [Thu, 4 Apr 2019 23:10:18 +0000 (00:10 +0100)]
demos: Update GtkGrid definitions in UI files
Emmanuele Bassi [Thu, 4 Apr 2019 23:08:18 +0000 (00:08 +0100)]
Update GtkGrid definitions in GtkBuilder files
Convert packing properties to layout ones.
Emmanuele Bassi [Thu, 4 Apr 2019 22:33:11 +0000 (23:33 +0100)]
builder-tool: Convert GtkGrid child properties
Emmanuele Bassi [Thu, 4 Apr 2019 21:43:07 +0000 (22:43 +0100)]
tests: Update the GtkGrid suite
We don't use child properties any more.
Emmanuele Bassi [Thu, 4 Apr 2019 21:41:19 +0000 (22:41 +0100)]
Add convenience function for querying a child of GtkGrid
Getting the layout manager instance out of GtkGrid, and then querying
all layout properties can be tedious, especially for code that was
usually calling gtk_container_child_get().
To replace that, we can add a simple query function that returns the two
attach points and the spans.
Emmanuele Bassi [Thu, 4 Apr 2019 17:40:34 +0000 (18:40 +0100)]
Port GtkGrid to use GtkGridLayout
Marek Kašík [Thu, 4 Apr 2019 16:39:18 +0000 (16:39 +0000)]
Merge branch 'master' into 'master'
Print dialog, CUPS: Check unknown option values whether they are actually custom settings
See merge request GNOME/gtk!434
Till Kamppeter [Thu, 4 Apr 2019 16:39:18 +0000 (16:39 +0000)]
print: Check unknown option values whether they are actually custom settings
Additional code improvements and fixes:
- Use g_regex_match_simple() instead of sscanf()
- Added spaces between function names and left parantheses
- Set always correct custom page size
- Added page_setup field to CupsOptionsData data structure
- Replaced tab indentions by spaces
- Moved #define out of add_cups_options() function, removed line breaks from regular expressions
Emmanuele Bassi [Thu, 4 Apr 2019 15:43:06 +0000 (16:43 +0100)]
docs: Add missing layout managers to the API reference
Emmanuele Bassi [Thu, 4 Apr 2019 15:31:56 +0000 (16:31 +0100)]
Document GtkGridLayout
Add missing stanzas for properties and accessor functions.
Piotr Drąg [Thu, 4 Apr 2019 11:25:03 +0000 (13:25 +0200)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Wed, 3 Apr 2019 23:38:55 +0000 (23:38 +0000)]
Merge branch 'custom-surface' into 'master'
Drop gdk_wayland_surface_set_use_custom_surface
Closes #1806
See merge request GNOME/gtk!713
Matthias Clasen [Wed, 3 Apr 2019 23:22:36 +0000 (23:22 +0000)]
Drop gdk_wayland_surface_set_use_custom_surface
This is unused in GTK, and it does not seem useful
enough to keep around.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1806
Matthias Clasen [Wed, 3 Apr 2019 23:14:38 +0000 (23:14 +0000)]
Merge branch 'zbrown/type-info' into 'master'
inspector: Type info for misc pane
See merge request GNOME/gtk!712
Zander Brown [Wed, 3 Apr 2019 22:50:24 +0000 (23:50 +0100)]
inspector: Type info for misc pane
Replaces the class hierarchy page with a button/popover on the misc page
Emmanuele Bassi [Wed, 3 Apr 2019 18:03:58 +0000 (19:03 +0100)]
Add GtkGridLayout
Layout manager for grid-like widgets.
Piotr Drąg [Wed, 3 Apr 2019 17:03:36 +0000 (19:03 +0200)]
Update POTFILES.in
Matthias Clasen [Wed, 3 Apr 2019 15:10:10 +0000 (15:10 +0000)]
Fix teststack
This testcase wasn't updated to new GtkStack apis.
Matthias Clasen [Wed, 3 Apr 2019 13:28:58 +0000 (13:28 +0000)]
Merge branch 'wip/carlosg/drop-search-handle-event' into 'master'
Search improvements
See merge request GNOME/gtk!710
Matthias Clasen [Wed, 3 Apr 2019 13:12:01 +0000 (13:12 +0000)]
Merge branch 'wip/carlosg/paned-cursor' into 'master'
paned: Set cursor on gizmo widget
See merge request GNOME/gtk!711
Matthias Clasen [Wed, 3 Apr 2019 12:16:01 +0000 (12:16 +0000)]
Merge branch 'patch-1' into 'master'
Update zh_CN.po
See merge request GNOME/gtk!709
Carlos Garnacho [Wed, 3 Apr 2019 11:26:40 +0000 (13:26 +0200)]
paned: Set cursor on gizmo widget
We may avoid setting it on the paned widget depending on the pointer
position altogether, since the handle is now a widget. Also is more
likely to be correct as the implicitly grabbed widget will probably
be that one.
Fixes the paned losing the resize cursor after button press.